public class Test {
    public static void main(String[] args) {
        MyArraylist myArraylist = new MyArraylist();
        myArraylist.add(1);
        myArraylist.add(2);
        myArraylist.add(3);
        myArraylist.add(4);

        myArraylist.display();

        System.out.println(myArraylist.contains(3));
        System.out.println(myArraylist.contains(6));

        System.out.println(myArraylist.get(2));
        System.out.println(myArraylist.get(9));

        System.out.println(myArraylist.isFull());

        myArraylist.remove(3);
        myArraylist.display();

        myArraylist.set(2,3);
        myArraylist.display();
    }
}
